package 抽象工厂.v1;

/**
 * 编码时，漏了构造方法，多类setter
 */
public enum HumanEnum {
    //把世界上所有人类型都定义出来
    YellowMaleHuman("抽象工厂.v1.human.YellowMaleHuman"),
    YellowFemaleHuman("抽象工厂.v1.human.YellowFemaleHuman"),
    WhiteFemaleHuman("抽象工厂.v1.human.WhiteFemaleHuman"),
    WhiteMaleHuman("抽象工厂.v1.human.WhiteMaleHuman"),
    BlackFemaleHuman("抽象工厂.v1.human.BlackFemaleHuman"),
    BlackMaleHuman("抽象工厂.v1.human.BlackMaleHuman");

    private String value;

    public String getValue() {
        return value;
    }

//    public void setValue(String value) {
//        this.value = value;
//    }

    //定义构造函数,目的是Data(value)类型的相匹配
    private HumanEnum(String value){
        this.value = value;
    }
}
